about summary refs log tree commit diff stats
path: root/src/luasocket/buffer.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-22 15:05:35 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-22 15:09:57 -0800
commit348945321d751ff3fbd59e315f560e38df25f98b (patch)
treea8ed9207b456c2dac8f9d7511e924875d8e618ab /src/luasocket/buffer.c
parente7a73626e826bad1a39dffdd8e8c47bd8b8d2d57 (diff)
downloadteliva-348945321d751ff3fbd59e315f560e38df25f98b.tar.gz
errors during tests are now handled
I should have documented that I'd never actually seen that code path
trigger before. Here's a minimal test that did it just now:

  function test_foo()
    return a+1
  end

  E2: [string "test_foo"]:2: attempt to perform arithmetic on global 'a' (a nil value)

A simple missing variable doesn't do it since it just evaluates to nil.

Without this commit, the above test was silently continuing to the main
app after failing tests.
Diffstat (limited to 'src/luasocket/buffer.c')
0 files changed, 0 insertions, 0 deletions