Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
254f2186
Commit
254f2186
authored
Jul 07, 2007
by
Ian Lynagh
Browse files
Fix calibrate python script for non-UNIX machines
parent
a3600a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/timeout/calibrate
View file @
254f2186
...
...
@@ -4,7 +4,14 @@ import math
import
os
from
os
import
*
from
sys
import
*
from
resource
import
*
try
:
from
resource
import
*
except
:
# We don't have resource, so this is a non-UNIX machine.
# It's probably a reasonable modern x86/x86_64 machines, so we'd
# probably calibrate to 300 anyway; thus just print 300.
print
300
exit
(
0
)
compiler
=
argv
[
1
]
compiler_name
=
os
.
path
.
basename
(
compiler
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment