[svn:parrot] r48207 - trunk/t/compilers/pct

NotFound at svn.parrot.org NotFound at svn.parrot.org
Wed Jul 28 22:30:20 UTC 2010


Author: NotFound
Date: Wed Jul 28 22:30:20 2010
New Revision: 48207
URL: https://trac.parrot.org/parrot/changeset/48207

Log:
fix pct workflow test for non ascii build path

Modified:
   trunk/t/compilers/pct/complete_workflow.t

Modified: trunk/t/compilers/pct/complete_workflow.t
==============================================================================
--- trunk/t/compilers/pct/complete_workflow.t	Wed Jul 28 21:52:30 2010	(r48206)
+++ trunk/t/compilers/pct/complete_workflow.t	Wed Jul 28 22:30:20 2010	(r48207)
@@ -306,6 +306,7 @@
     # Do not assume that . is in $PATH
     # places to look for things
     my $BUILD_DIR     = $PConfig{build_dir};
+    my $BD_CHARSET    = $BUILD_DIR =~ /[^[:ascii:]]/ ? "binary:" : q{};
     my $TEST_DIR      = "$BUILD_DIR/t/compilers/pct";
     my $PARROT        = "$BUILD_DIR/parrot$PConfig{exe}";
     my $PGE_LIBRARY   = "$BUILD_DIR/runtime/parrot/library/PGE";
@@ -334,7 +335,7 @@
     .local pmc args
     args = new 'ResizableStringArray'
     push args, "test_program"
-    push args, "$TEST_DIR/complete_workflow_sample_input.txt"
+    push args, $BD_CHARSET"$TEST_DIR/complete_workflow_sample_input.txt"
 
     \$P0 = new ['PCT'; 'HLLCompiler']
     \$P0.'language'('TestGrammar')


More information about the parrot-commits mailing list