- Added support for setting the terminal foreground color.

- Some improvements to error handling.
This commit is contained in:
Adam Murdoch
2012-08-04 10:00:32 +10:00
parent 31e9d2b41c
commit 335065887e
10 changed files with 145 additions and 49 deletions

View File

@@ -36,7 +36,7 @@ class PosixFileTest extends Specification {
then:
NativeException e = thrown()
e.message == "Could not set UNIX mode on $file. Errno is 2."
e.message == "Could not set UNIX mode on $file: could not chmod file (errno 2)"
}
def "throws exception on failure to get mode"() {
@@ -47,6 +47,6 @@ class PosixFileTest extends Specification {
then:
NativeException e = thrown()
e.message == "Could not get UNIX mode on $file. Errno is 2."
e.message == "Could not get UNIX mode on $file: could not stat file (errno 2)"
}
}

View File

@@ -20,6 +20,6 @@ class TerminalTest extends Specification {
then:
NativeException e = thrown()
e.message.startsWith('Could not open terminal. Errno is ')
e.message == 'Could not open terminal: not a terminal'
}
}