[llvm-commits] CVS: llvm-test/Makefile.programs

Reid Spencer reid at x10sys.com
Mon Nov 27 23:18:40 PST 2006



Changes in directory llvm-test:

Makefile.programs updated: 1.244 -> 1.245
---
Log message:

Make bugpoint always run with the -append-exit-code option so that it will
write out "exit <retval>" to the end of the test program's output file.
This causes it to mimic RunSafely.sh's behavior and prevents it from 
generating false positives.


---
Diffs of the changes:  (+6 -0)

 Makefile.programs |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm-test/Makefile.programs
diff -u llvm-test/Makefile.programs:1.244 llvm-test/Makefile.programs:1.245
--- llvm-test/Makefile.programs:1.244	Sun Nov 26 01:14:16 2006
+++ llvm-test/Makefile.programs	Tue Nov 28 01:18:25 2006
@@ -382,6 +382,12 @@
 Output/%.out-cbe: Output/%.cbe
 	-$(RUNSAFELY) $(STDIN_FILENAME) $@ $< $(RUN_OPTIONS)
 
+# The RunSafely.sh script puts an "exit <retval>" line at the end of
+# the program's output. We have to make bugpoint do the same thing
+# or else it will get false positives when it diff's the reference
+# output with the program's output.
+BUGPOINT_OPTIONS += -append-exit-code
+
 # If a tolerance is set, pass it off to bugpoint
 ifdef FP_TOLERANCE
 BUGPOINT_OPTIONS += -rel-tolerance $(FP_TOLERANCE)






More information about the llvm-commits mailing list