aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_diff.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-04 23:06:10 +0900
committernsfisis <nsfisis@gmail.com>2025-05-05 00:22:18 +0900
commit992fc93278710bb41117d93531d9ed18db49e119 (patch)
tree1c8944cb951d2c830a278d8ea4b7ad8b15add142 /tests/test_diff.sh
parentaa750653fe6c03c6144142d233bd032e4e9070c0 (diff)
downloadP4Dcc-992fc93278710bb41117d93531d9ed18db49e119.tar.gz
P4Dcc-992fc93278710bb41117d93531d9ed18db49e119.tar.zst
P4Dcc-992fc93278710bb41117d93531d9ed18db49e119.zip
fix load/store
Diffstat (limited to 'tests/test_diff.sh')
-rw-r--r--tests/test_diff.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_diff.sh b/tests/test_diff.sh
index a66639e..44e00d0 100644
--- a/tests/test_diff.sh
+++ b/tests/test_diff.sh
@@ -6,7 +6,10 @@ if [[ $? -ne 0 ]]; then
exit 1
fi
gcc -Wl,-z,noexecstack -o a.out main.s
-./a.out > output
+if [[ ! -f input ]]; then
+ touch input
+fi
+./a.out < input > output
exit_code=$?
if [[ $exit_code -ne 0 ]]; then