diff options
Diffstat (limited to 't/pragma')
-rw-r--r-- | t/pragma/warn/sv | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/pragma/warn/sv b/t/pragma/warn/sv index 0421192104..b6c91c9fe9 100644 --- a/t/pragma/warn/sv +++ b/t/pragma/warn/sv @@ -235,24 +235,24 @@ Subroutine fred redefined at - line 5. # sv.c use warning 'printf' ; open F, ">".($^O eq 'VMS'? 'NL:' : '/dev/null') ; -printf F "%q\n" ; -my $a = sprintf "%q" ; +printf F "%z\n" ; +my $a = sprintf "%z" ; printf F "%" ; $a = sprintf "%" ; printf F "%\x02" ; $a = sprintf "%\x02" ; no warning 'printf' ; -printf F "%q\n" ; -$a = sprintf "%q" ; +printf F "%z\n" ; +$a = sprintf "%z" ; printf F "%" ; $a = sprintf "%" ; printf F "%\x02" ; $a = sprintf "%\x02" ; EXPECT -Invalid conversion in sprintf: "%q" at - line 5. +Invalid conversion in sprintf: "%z" at - line 5. Invalid conversion in sprintf: end of string at - line 7. Invalid conversion in sprintf: "%\002" at - line 9. -Invalid conversion in printf: "%q" at - line 4. +Invalid conversion in printf: "%z" at - line 4. Invalid conversion in printf: end of string at - line 6. Invalid conversion in printf: "%\002" at - line 8. ######## |