aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-tclsh-fork.sh
blob: e06f36b81f4a222ffdeab8e4a68786600e7fd631 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
#
# SPDX-License-Identifier: LGPL-2.1-only
#

# Check that tclsh doesn't hang.  Note that the timeout is not needed to
# reproduce the hang in tclsh, it's only there to ensure that this test script
# doesn't hang in case of a failing test.
timeout 2s bash -c "echo 'open {|true} r+' | tclsh"