Commit Graph

13 Commits

Author SHA1 Message Date
Simon Ruderich
f54cd101d7 Update copyright year. 2014-01-01 16:41:01 +01:00
Simon Ruderich
b950cdb792 Add COLORED_STDERR_IGNORED_BINARIES to exclude binaries. 2013-07-07 13:33:44 +02:00
Simon Ruderich
abd557a42f tests: Handle sed which append a trailing newline. 2013-07-01 03:20:38 +02:00
Simon Ruderich
b926752fac tests: Don't require bash.
Instead merge continuous regions of colored output. This way different
shell implementations shouldn't make a difference.
2013-07-01 03:12:24 +02:00
Simon Ruderich
0d7f306898 Overwrite tracked file descriptors when exporting COLORED_STDERR_FDS.
If the list of tracked file descriptors is modified to contain unwanted
values (e.g. when a parent process closes or redirects stderr), this
makes it possible to set the tracked file descriptors back to a given
list.

This problem occurred with startx which somehow closes or redirects
stderr. As COLORED_STDERR_FDS was set in the shell running startx, this
disabled coloring stderr for all processes started in the X11 session.

This is no longer an issue. As COLORED_STDERR_FDS is set in the shell
configuration file, it automatically sets the list to the correct value
when a shell is opened in the terminal emulator once X11 is running.
2013-06-21 23:03:12 +02:00
Simon Ruderich
d5b84811d2 tests/lib.sh: Fix tests for dash. 2013-06-13 22:35:42 +02:00
Simon Ruderich
3c2b4bf9f6 tests/lib.sh: Minor cleanup. 2013-06-13 22:11:15 +02:00
Simon Ruderich
59375c2b79 Fix possible memory overwrite in init_from_environment().
It was possible for a user to overwrite memory at a relative location
with 1 by passing a negative file descriptor.
2013-06-13 22:08:08 +02:00
Simon Ruderich
04ac66863a tests: Split run.sh in multiple test files.
Allows parallel test runs and simplifies optional tests.
2013-06-13 01:26:25 +02:00
Simon Ruderich
5c8b5233fb tests: Run tests under valgrind if it's available. 2013-06-07 01:17:42 +02:00
Simon Ruderich
374b11a314 tests: Also run tests in subshell with LD_PRELOAD set. 2013-06-05 01:06:10 +02:00
Simon Ruderich
7108005fff tests: Use <STDERR< and >STDERR> as markers.
Increases contrast to "stderr" output string.
2013-06-02 23:41:31 +02:00
Simon Ruderich
fb9548453f Add simple test suite. 2013-06-01 21:51:28 +02:00