Skip to content
Browse files

Fix test reference output

  • Loading branch information...
1 parent 7a71fd6 commit 6c83f60aa712fef3a1ec19c9b733bf4377a06d9d @lgritz lgritz committed Mar 2, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 testsuite/message/a.osl
  2. +2 −0 testsuite/message/b.osl
  3. +1 −1 testsuite/message/ref/out.txt
View
2 testsuite/message/a.osl
@@ -1,7 +1,7 @@
shader a (float Kd = 0.5,
output float f_out = 0,
output color c_out = 0,
- output float dummy = u // just to force a real connection when opt is on
+ output float dummy = u+v // just to force a real connection when opt is on
)
{
f_out = Kd;
View
2 testsuite/message/b.osl
@@ -50,4 +50,6 @@ shader b (float f_in = 41,
closure color diff = 0;
setmessage("get_int_set_closure", 3);
getmessage("get_int_set_closure", diff); // should be a type mismatch error (destination was a closure)
+
+ Ci = emission() * float(c) + diff; // force use of these variables
}
View
2 testsuite/message/ref/out.txt
@@ -7,7 +7,7 @@ a: f_out = 0.5, c_out = 0.25 1 1
a: set message 'foo' to 0.125 0.5 0.5
a: set message 'cc' to (0.5, 0.5, 0.5) * diffuse ((0, 0, 1))
a: set message 'array' to { 42 43 44 45 }
-dummy = 0.5, force connection with optimization
+dummy = 1, force connection with optimization
ERROR: message "wrong_direction_test" was queried before being set (queried here: a.osl:26) setting it now (b.osl:9) would lead to inconsistent results
b: f_in = 0.5, c_in = 0.25 1 1
b: retrieved message 'foo', result = 1, foo = 0.125 0.5 0.5

0 comments on commit 6c83f60

Please sign in to comment.
Something went wrong with that request. Please try again.