[test-suite] r289586 - [test-suite] Test output should not depend on file path.
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 12:52:08 PST 2016
Author: tra
Date: Tue Dec 13 14:52:08 2016
New Revision: 289586
URL: http://llvm.org/viewvc/llvm-project?rev=289586&view=rev
Log:
[test-suite] Test output should not depend on file path.
Modified:
test-suite/trunk/External/CUDA/assert.cu
test-suite/trunk/External/CUDA/assert.reference_output
Modified: test-suite/trunk/External/CUDA/assert.cu
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/CUDA/assert.cu?rev=289586&r1=289585&r2=289586&view=diff
==============================================================================
--- test-suite/trunk/External/CUDA/assert.cu (original)
+++ test-suite/trunk/External/CUDA/assert.cu Tue Dec 13 14:52:08 2016
@@ -1,6 +1,10 @@
#include <assert.h>
#include <stdio.h>
+// Use fixed value for __FILE__ so assert message does not depend on
+// the actual path to the file during compilation..
+#define __FILE__ "assert.cu"
+
__global__ void kernel() {
// Our reference output contains the line number of this assert() call; be
// careful when modifying the parts of this file above this line.
Modified: test-suite/trunk/External/CUDA/assert.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/CUDA/assert.reference_output?rev=289586&r1=289585&r2=289586&view=diff
==============================================================================
--- test-suite/trunk/External/CUDA/assert.reference_output (original)
+++ test-suite/trunk/External/CUDA/assert.reference_output Tue Dec 13 14:52:08 2016
@@ -1,2 +1,2 @@
-../External/CUDA/assert.cu:7: void kernel(): block: [0,0,0], thread: [0,0,0] Assertion `false` failed.
+assert.cu:11: void kernel(): block: [0,0,0], thread: [0,0,0] Assertion `false` failed.
exit 0
More information about the llvm-commits
mailing list